﻿@using System.Data
@model System.Data.DataTable

@{
    ViewData["Title"] = "Home Page";
}

<div class="text-center">
    <h1 class="display-4">Welcome</h1>
    <p>Learn about <a href="https://learn.microsoft.com/aspnet/core">building Web apps with ASP.NET Core</a>.</p>
</div>

<table class="table table-hover">
    <thead>
        <tr>
            <th>id</th>
            <th>名称</th>
            <th>价格</th>
        </tr>
    </thead>
    <tbody>
            @foreach(DataRow row in Model.Rows)
            {
            <tr>
                <td>@row["Id"]</td>
                <td>@row["Name"]</td>
                <td>@row["prices"]</td>
            </tr>
            }
    </tbody>
</table>